package com.zhentao.schedule.file.controller;

import com.zhentao.schedule.file.model.common.dtos.ResponseResult;
import com.zhentao.schedule.file.model.user.dto.LoginDto;
import com.zhentao.schedule.file.service.ApUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/*
 * @Date 2024/10/22
 * @Author ljj
 */
@RestController
@RequestMapping("/api/v1/login")
public class ApUserLoginController {
    @Autowired
    private ApUserService apUserService;
    @PostMapping("/login_auth")
    public ResponseResult login(LoginDto loginDto) {
         return apUserService.login(loginDto);
    }
}
